package com.weishuang.model.account.facade;

import com.weishuang.model.account.dto.PermissionDTO;
import com.weishuang.model.account.dto.RoleDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "weishuang-account", contextId = "permission", path = "/account/permission")
public interface PermissionFacade {

    @PostMapping("/getPermissions")
    List<PermissionDTO> getPermissions(@RequestParam String userId);

}
